/loading/ {
 n = split ($2, a, "(");
 if (n==2) {
   m = split(a[2], b, ")");
   if (length(jars[a[1]]) == 0) 
   	jars[a[1]] = " ";
   jars[a[1]] = jars[a[1]] " " b[1]
   classes = classes " " b[1]
 } 
}
END {
  for (jar in jars) 
    system("jar xf " jar " " jars[jar]);
  system("jar cf rt.jar " classes);
  system("rm -f " classes);
}
